#include "syscall.h"
#include "print.c"

#define PROCESSES	10

int main()
{
	int i;
	int processID;
	int printMsg[5];

	printString("-------------- Starting Test Maximum Exec --------------\n");

	printMsg[0] = PROCESSES;
	printf("-> We are trying to execute %d programs...\n", printMsg);
	/* Executing programs */
	for (i = 1; i <= PROCESSES; i++) {
		/*printf("-> Executing max_exec_program...\n", printMsg);*/
		printMsg[0] = i;
		processID = Exec("../test/max_exec_program", 24);
		if (processID == -1) {
			printf("!!!! Execute program attempt [%d] failed !!!!\n", printMsg);
		}
	}

	Exit(0);
}
